package com.zhongfl.crm.mail.bean;

import com.zhongfl.crm.mail.enums.MailTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.mail.SimpleMailMessage;

import java.io.File;
import java.util.Map;

/**
 * @author wang.yuchuan
 * @date 2018/4/9
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MailMessage extends SimpleMailMessage {

    /**
     * 模板
     */
    private MailTypeEnum templateEnum;

    /**
     * 模板数据
     */
    private Map<String, Object> models;

    /**
     * 发送的附件
     */
    private Map<String, File> files;
}
